package com.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dao.StudentDao;
import com.dao.UserDao;
import com.service.AdminService;
import com.util.Pagination;
@Repository("AdminService")
public class AdminServiceImpl implements AdminService {
	
	public UserDao getUserdao() {
		return userdao;
	}

	public void setUserdao(UserDao userdao) {
		this.userdao = userdao;
	}

	public StudentDao getStudentdao() {
		return studentdao;
	}

	public void setStudentdao(StudentDao studentdao) {
		this.studentdao = studentdao;
	}

	@Resource(name="StudentDao")
	private StudentDao studentdao;
	@Resource(name="UserDao")
	private UserDao userdao;
	
	@Override
	public Pagination stuList(Pagination paperPage,String flag) {
		
		return userdao.stuList(paperPage,flag) ;
	}

	

}
